
const { program } = require('commander');

program
  .argument('<dirs>', 'array')
  .argument('<number>', 'this is a number')
  .action(async (dirs, number) => {
    await main (dirs, number);
  });

  program.parseAsync(process.argv)
  .then(() => {
    console.log('DONE');
    process.exit(0);
  })
  .catch((err) => {
    console.error(err);
    process.exit(1);
  });

async function main (a,b) {
  console.log('--' + a);
  console.log('++' + b);
}